package com.aspose.cells;

class zccb extends zcdb {
   protected Workbook a;

   zccb(Workbook var1) {
      this.d = 45;
      this.a = var1;
   }

   void a(zon var1) {
      int var2 = 68;
      if (var1.c != null) {
         var2 += var1.c.h.length * 16;
      }

      this.c = new byte[var2];
      if (var1.c != null) {
         this.c[0] = 40;
         this.c[5] = 64;
         this.c[13] = 64;
         znq var3 = var1.c;
         byte var4 = 20;
         this.c[var4] = (byte)("path".equals(var3.e) ? 1 : 0);
         int var7 = var4 + 4;
         System.arraycopy(com.aspose.cells.b.a.zc.a((double)var3.f), 0, this.c, var7, 8);
         var7 += 8;
         System.arraycopy(com.aspose.cells.b.a.zc.a(var3.a), 0, this.c, var7, 8);
         var7 += 8;
         System.arraycopy(com.aspose.cells.b.a.zc.a(var3.b), 0, this.c, var7, 8);
         var7 += 8;
         System.arraycopy(com.aspose.cells.b.a.zc.a(var3.c), 0, this.c, var7, 8);
         var7 += 8;
         System.arraycopy(com.aspose.cells.b.a.zc.a(var3.d), 0, this.c, var7, 8);
         var7 += 8;
         int var5 = var3.h.length;
         System.arraycopy(com.aspose.cells.b.a.zc.a(var5), 0, this.c, var7, 4);
         var7 += 4;

         for(int var6 = 0; var6 < var5; ++var6) {
            zcdb.a(this.c, var7, var3.h[var6], 64, this.a);
            var7 += 8;
            System.arraycopy(com.aspose.cells.b.a.zc.a(var3.g[var6]), 0, this.c, var7, 8);
            var7 += 8;
         }
      } else {
         System.arraycopy(com.aspose.cells.b.a.zc.a(zcee.o(zase.i(var1.b.a))), 0, this.c, 0, 4);
         if (!"none".equals(var1.b.a)) {
            zcdb.a(this.c, 4, var1.b.b, 64, this.a);
            if (zase.i(var1.b.a) != 1) {
               zcdb.a(this.c, 12, var1.b.c, 64, this.a);
            }
         }
      }

   }
}
